package model

import "time"

type SysRole struct {
	RoleId int `json:"role_id" gorm:"not null;unique;primary_key"`
	RoleName string `gorm:"unique_index;not null" json:"role_name"`
	RoleDesc string `json:"role_desc"`
	CreatedAt       time.Time `json:"created_at"`
	UpdatedAt       time.Time `json:"updated_at"`
	SysBaseMenus []*SysBaseMenu  `gorm:"many2many:sys_role_menus"`
	Children []*SysBaseMenu `json:"children"`
}

